package com.dnzx.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.dnzx.framework.orm.mybatis.MybatisBaseDao;
import org.springframework.stereotype.Repository;

import com.dnzx.model.system.MenuBO;

/**
 * <p>cms系统后台资源Dao </p>
 *
 * @author Steven
 * @version V1.0
 * @Package com.dnzx.dao
 * 
 * @date 2017/9/15 11:08
 */
@Repository
public interface IMenuDao extends MybatisBaseDao<MenuBO,Long> {
	
	public void save(MenuBO menuBO);
	
	public void delete(Long id);
	
	public void update(MenuBO menuBO);
	
	public MenuBO get(Long id);
	
	public MenuBO get(MenuBO menuBO);

	public List<MenuBO> queryList(MenuBO menuBO);
	
	public List<MenuBO> queryListByRole(MenuBO menuBO);
	
	public List<MenuBO> queryPage(@Param("pageSize") int pageSize, 
			@Param("startRow") int startRow, @Param("bo") MenuBO bo);
	
	public int queryCount(MenuBO menuBO);
	
}
